using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using DevExpress.XtraReports.UI;
using DTO;

namespace WellmeadowsHospital
{
    public partial class ReportPatientCurrent : DevExpress.XtraReports.UI.XtraReport
    {
        public ReportPatientCurrent()
        {
            InitializeComponent();
        }
        public void Load(WardInfoDTO nhap)
        {

            lblChargeNurse.Text = nhap.Name;
            lblLocation.Text= nhap.Location;
            lblStaffID.Text = nhap.StaffID;
            lblTelExtn.Text = nhap.TelExtn;
            lblWardName.Text = nhap.WardName;
            lblWardID.Text = nhap.WardID;

            colPatientID.DataBindings.Add("Text", DataSource, "PatientID");
            colName.DataBindings.Add("Text", DataSource, "Name");
            colDateRegis.DataBindings.Add("Text", DataSource, "DateRegistered");
            colExpect.DataBindings.Add("Text", DataSource, "ExpectedStay");
            colDatePlaced.DataBindings.Add("Text", DataSource, "DatePlaced");
            colDateLeave.DataBindings.Add("Text", DataSource, "DateLeave");
            colActual.DataBindings.Add("Text", DataSource, "ActualLeave");
            colBedNumber.DataBindings.Add("Text", DataSource, "BedNumber");
            //lbldate.DataBindings.Add("Value", DataSource, "DateBegin");
            XRBinding b = new XRBinding("Text", DataSource, "DateBegin", "{0:MM/dd/yyyy}");
            lbldate.DataBindings.Add(b);
        }

    }
}
